package com.dfec.utils;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;


public class ResponseUtil {
	
	public static void sendScript(HttpServletResponse response,String script)
	{
		try {
			response.setContentType("text/html");
			response.setCharacterEncoding("utf-8");
			PrintWriter out = response.getWriter();
			out.print(script);
			out.flush();
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
			throw new RuntimeException("JsonUtil转换失败"); 
		}
	}
	

}
